<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 
	class Restrict_page {		
			
		public function __construct(){	
					
			$CI =& get_instance();		
				
			$CI->load->library('session');
			session_start();
			
			if ( !($CI->session->userdata('email')) && !($CI->session->userdata('id')) ){
				redirect('login');
			}
		
		}	
	}
?>